package 笨小猴;

import java.util.Scanner;


// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] has = new int[26];
        String s = in.next();
        int n = s.length();
        int max = Integer.MIN_VALUE;
        int min = Integer.MAX_VALUE;
        for (int i = 0; i < n; i++) {
            int idx = s.charAt(i) - 'a';
            has[idx]++;
        }
        for (int i = 0; i < 26; i++) {
            if (has[i] > 0) {
                max = Math.max(max, has[i]);
                min = Math.min(min, has[i]);
            }
        }
        if (check(max - min)) {
            System.out.println("Lucky Word");
            System.out.println(max - min);
        } else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }

    private static boolean check(int x) {
        if (x < 2) {
            return false;
        }
        for (int i = 2; i <= x / i; i++) {
            if (x % i == 0) {
                return false;
            }
        }
        return true;
    }
}